package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the pur_plan_details database table.
 * 
 */
@Entity
@Table(name="pur_plan_details")
@NamedQuery(name="PurPlanDetail.findAll", query="SELECT p FROM PurPlanDetail p")
public class PurPlanDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="plandetail_id")
	private String plandetailId;

	@Column(name="basic_price")
	private BigDecimal basicPrice;

	@Column(name="contax_price")
	private BigDecimal contaxPrice;

	@Temporal(TemporalType.DATE)
	@Column(name="delivery_date")
	private Date deliveryDate;

	@Column(name="plan_money")
	private BigDecimal planMoney;

	@Column(name="plan_quantity")
	private int planQuantity;

	@Column(name="pro_id")
	private String proId;

	private String supplier;

	//bi-directional many-to-one association to PurPlan
	@ManyToOne
	@JoinColumn(name="plan_id")
	private PurPlan purPlan;

	public PurPlanDetail() {
	}

	public String getPlandetailId() {
		return this.plandetailId;
	}

	public void setPlandetailId(String plandetailId) {
		this.plandetailId = plandetailId;
	}

	public BigDecimal getBasicPrice() {
		return this.basicPrice;
	}

	public void setBasicPrice(BigDecimal basicPrice) {
		this.basicPrice = basicPrice;
	}

	public BigDecimal getContaxPrice() {
		return this.contaxPrice;
	}

	public void setContaxPrice(BigDecimal contaxPrice) {
		this.contaxPrice = contaxPrice;
	}

	public Date getDeliveryDate() {
		return this.deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public BigDecimal getPlanMoney() {
		return this.planMoney;
	}

	public void setPlanMoney(BigDecimal planMoney) {
		this.planMoney = planMoney;
	}

	public int getPlanQuantity() {
		return this.planQuantity;
	}

	public void setPlanQuantity(int planQuantity) {
		this.planQuantity = planQuantity;
	}

	public String getProId() {
		return this.proId;
	}

	public void setProId(String proId) {
		this.proId = proId;
	}

	public String getSupplier() {
		return this.supplier;
	}

	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}

	public PurPlan getPurPlan() {
		return this.purPlan;
	}

	public void setPurPlan(PurPlan purPlan) {
		this.purPlan = purPlan;
	}

}